package org.neuedu.his.controller.reg;

import org.neuedu.his.model.Constantitem;
import org.neuedu.his.service.reg.RegConstantitem;
import org.neuedu.his.service.reg.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/reg/register")
public class RegRegisterController {
    @Autowired
    RegisterService registerService;
    @Autowired
    RegConstantitem regConstantitem;

    @GetMapping("/getInvoiceNum")
    public int getInvoiceNum(){
        return registerService.getInvoiceNum();
    }
    @GetMapping("/getCaseNum")
    public int getCaseNum(){
        return registerService.getCaseNum();
    }
    @GetMapping("/getSex")
    public List<Constantitem> getSex(){
        return regConstantitem.getSex();
    }

}
